package com.atguigu.springcloud.service.fallback;

import com.atguigu.springcloud.service.PaymentHystrixService;
import org.springframework.stereotype.Component;

/**
 * @program: cloud2020
 * @description:
 * @author: 陈恩涛
 * @create: 2022-03-03 15:12
 **/

@Component
public class PaymentFallbackService implements PaymentHystrixService {

    @Override
    public String paymentInfo_OK(Integer id) {
        return "------PaymentFallbackService fall back ----paymentInfo_OK，o(╥﹏╥)o";
    }

    @Override
    public String paymentInfo_Timeout(Integer id) {
        return "------PaymentFallbackService fall back----paymentInfo_Timeout，o(╥﹏╥)o";
    }
}
